home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Internet
/
Collection of Internet.iso
/
infosrvr
/
dev
/
libhtml_.tar
/
object.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-01-20
|
377b
|
18 lines
/* object.h -- C++ isms for C
* $Id$
*/
#include <stdlib.h>
#define NEW(type, qty) ((type*)malloc(qty * sizeof(type)))
#define RENEW(type, old, qty) ((type*)realloc(old, qty*sizeof(type)))
#define DELETE(type, addr) (type##_dt(addr), addr ? free(addr) : (void)0)
#define FREE(addr) free((VOIDPTR)addr)
#define char_dt(addr) ((void)0)
#ifndef EOF
#define EOF (-1)
#endif